from sqlalchemy import create_engine, Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker

Base = declarative_base()
engine = create_engine('mysql+pymysql://root:123456@localhost/database_name')
Base.metadata.create_all(engine)

class User(Base):
    __tablename__ = 't_task'

    id = Column(Integer, primary_key=True)
    taskId = Column(Integer)
    output = Column(String)
    process = Column(String)